import request from "@/utils/request";

// 获取合同设置
export function getContractSetting() {
  return request<any, any>({
    url: "/contracts/settings",
    method: "get",
  });
}

// 添加设置
export function addContractSetting(data: any) {
  return request<any, any>({
    url: "/contracts/addSettings",
    method: "post",
    data: data,
  });
}

// 编辑设置
export function updateContractSetting(data: any) {
  return request<any, any>({
    url: "/contracts/updateSettings",
    method: "put",
    data: data,
  });
}

// 删除设置
export function delContractSetting(data: any) {
  return request<any, any>({
    url: "/contracts/delSettings",
    method: "delete",
    params: data,
  });
}

// 更新合同状态
export function updateContractStatus(data: any) {
  return request<any, any>({
    url: "/contracts/settingsStatus",
    method: "put",
    data: data,
  });
}
